#!/bin/sh
# - nr_threads
# - duration
# - iterations

## ebizzy is designed to generate a workload resembling common
## webapplication server workloads. It is highly threaded,
## has a large in-memory working set, and allocates
## and deallocates memory frequently.

cd $BENCHMARK_ROOT/ebizzy || exit

duration=${duration%%s}

for i in $(seq 1 $iterations)
do
	echo Iteration: $i
	cmd ./ebizzy -t $nr_threads \
		     -S $duration
done
